<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <title>微信和短信日志</title>
    <link rel="stylesheet" href="__CSS__/bootstrap.min.css" >
    <script src="__JS__/jquery-2.2.3.min.js"></script>
    <script src="__JS__/bootstrap.min.js"></script>
</head>
<body>
        <!--body wrapper start-->
        <div class="wrapper">
             <div class="row">
                <div class="col-lg-12">
                    <section class="panel">
                        <header class="panel-heading">
                            <a class="btn btn-danger"   href="{:url('yewu/catlog',['orderid'=>$map['order_id']])}">订单【{$map.order_id}】的详细日志</a>
                            <a class="btn btn-info"     href="{:url('log/log',['order_id'=>$map['order_id'],'log_type'=>1])}">订单【{$map.order_id}】的微信详细日志</a>
                            <a class="btn btn-success"  href="{:url('log/log',['order_id'=>$map['order_id'],'log_type'=>2])}">订单【{$map.order_id}】的短信详细日志</a>
                        </header>
                        <div class="panel-body">
                               <table class="table table-striped table-hover table-bordered" id="editable-sample">
                                <thead>
                                <tr>
                                    <th>ID</th>
                                    <th>日志类型</th>
                                    <th>日志状态</th>
                                    <th>接收者</th>
                                    <th>发送者</th>
                                    <th>订单id</th>
                                    <th>发送的消息</th>
                                    <th>失败消息</th>
                                    <th>创建时间</th>
                                    <th>ip</th>
                                    <th>操作</th>

                                </tr>
                                {volist name='wesmslog' id="vo" }
                                <tr>
                                    <td>{$vo.id}</td>
                                    <td>{$vo.log_type_text}</td>
                                    <td>{$vo.is_success_text}</td>
                                    <td>
                                        {empty name="vo.reuser.username"}
                                        {$vo.receive_id}
                                        {else /}
                                        {$vo.reuser.username}
                                        {/empty}
                                    </td>
                                    <td>{$vo.touser.username}</td>
                                    <td>{$vo.order_id}</td>
                                    <td><span class="tanchu" data-toggle="tooltip" data-placement="right" title="{$vo.send_msg}">{$vo.send_msg|msubstr=0,4}</span></td>
                                    <td><span class="tanchu" data-toggle="tooltip" data-placement="right" title="{$vo.error_msg}">{$vo.error_msg|msubstr=0,4}</span></td>
                                    <td>{$vo.create_time}</td>
                                    <td>{$vo.ip}</td>
                                    <td>
                                    </td>
                                </tr>
                                {/volist}
                                </tbody>
                               </table>
                        </div>
                    </section>
                </div>
            </div>
        </div>
        <!--body wrapper end-->
    <script>
        $(function (){

            $('.tanchu').hover(function (){
                $(this).tooltip('toggle');
            });
        });
    </script>
</body>
</html>